//
//  HJStatyView.m
//  YaDiuDiu
//
//  Created by 胡光健 on 2017/10/29.
//  Copyright © 2017年 jy. All rights reserved.
//

#import "HJStatyView.h"
@interface HJStatyView ()

@end
@implementation HJStatyView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/



-(instancetype)init {
    if (self =[super init]) {
        self =[[NSBundle mainBundle]loadNibNamed:@"StatyView" owner:nil options:nil].firstObject;
    }
    return self;
}
- (IBAction)cancelBtn:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(cancleBtn)]) {
        [self.delegate cancleBtn];
    }
}
- (IBAction)okBtn:(UIButton *)sender {
    
    if (self.okBtnBlock) {
        self.okBtnBlock(sender);
    }
}
@end
